Pass --cap-lints=allow instead of -Awarnings
authorAlex Crichton <alex@alexcrichton.com>
Fri, 24 Jul 2015 18:49:19 +0000 (11:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 24 Jul 2015 21:13:30 +0000 (14:13 -0700)
commitff96fa159b84b7a46f10f551bc041316ea55735a
treee7d4f2f7e1ecb58314cfefe7a9f8f01c38dfbbe3
parentfec382d5f2583a61f0114a70a16ad7f267e44b28
Pass --cap-lints=allow instead of -Awarnings

This commit adds support to Cargo to pass `--cap-lints allow` to all upstream
dependencies instead of `-A warings`. This should serve the same purpose of
suppressing warnings in upstream dependencies as well as preventing widespread
breakage whenever a change to a lint is introduced in the compiler.
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/mod.rs
src/cargo/util/config.rs
src/cargo/util/mod.rs
src/cargo/util/rustc.rs [new file with mode: 0644]
tests/test_cargo_compile_git_deps.rs
tests/tests.rs